package com.sc.nft.feign;


import com.sc.nft.req.home.HomePageReq;
import com.sc.nft.sup.Result;
import com.sc.nft.vo.home.HomePageDetailsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author JYT
 * @create 2024/4/27 11:29
 */
@FeignClient(name = "meta-mall-mini-app", path = "/wxMiniMall/home")
public interface WxMiniHomeClient {

    /**
     * 首页创建
     * @param request
     */
    @PostMapping(value = "/create", produces = MediaType.APPLICATION_JSON_VALUE)
    Result createHome(HomePageReq request);

    /**
     * 首页编辑
     * @param request
     */

    @PostMapping(value = "/update", produces = MediaType.APPLICATION_JSON_VALUE)
    Result updateHome(HomePageReq request);

    /**
     * 首页详情
     * @return
     */
    @PostMapping(value = "/details", produces = MediaType.APPLICATION_JSON_VALUE)
    Result<HomePageDetailsVO> homeDetails();


}
